package com.questionGenerator.commom.constant;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: usagi
 * @Date: 2024/04/22/23:16
 * @Description:
 */
/*
*     <option value="">请选择题型</option>
      <option value="1">通用判断题</option>
      <option value="2">通用选择题</option>
      <option value="3">通用填空题</option>
      <option value="4">解释程序题</option>
      <option value="5">程序填空题</option>
      <option value="6">编程大题</option>
      <option value="7">算法题</option>
* */

@Component
@Data
@ConfigurationProperties(prefix = "question-type")
public class QuestionType {
    private Integer maxNum;
    private Integer minNum;
    //@Value("${type-name}")
    private ArrayList<String> QuestionTypeName;
    /*
    public static Map<Integer, String> QuestionTypeName;
    static{
        QuestionTypeName = new HashMap<>();
        QuestionTypeName.put(1,"通用判断题");
        QuestionTypeName.put(2,"通用选择题");
        QuestionTypeName.put(3,"通用填空题");
        QuestionTypeName.put(4,"解释程序题");
        QuestionTypeName.put(5,"程序填空题");
        QuestionTypeName.put(6,"编程大题");
        QuestionTypeName.put(7,"算法题");

    }
    */
}
